package com.ruoyi.generator.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 代码生成业务对象 gen_table_sql
 *
 * @author 众智汇云研发部
 * @date 2021-11-23
 */
@Data
@ApiModel(value="gen_table_sql对象", description="代码生成业务")
public class GenTableSql extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 表名称 */
    @Excel(name = "表名称")
    @ApiModelProperty(value = "表名称", name = "tableName", dataType = "String")
    private String tableName;

    /** 表描述 */
    @Excel(name = "表描述")
    @ApiModelProperty(value = "表描述", name = "comment", dataType = "String")
    private String comment;

    /** 关联子表的表名 */
    @Excel(name = "关联子表的表名")
    @ApiModelProperty(value = "关联子表的表名", name = "subTableName", dataType = "String")
    private String subTableName;

    /** 子表关联的外键名 */
    @Excel(name = "子表关联的外键名")
    @ApiModelProperty(value = "子表关联的外键名", name = "tableFkName", dataType = "String")
    private String tableFkName;

    /** 实体类名称 */
    @Excel(name = "实体类名称")
    @ApiModelProperty(value = "实体类名称", name = "className", dataType = "String")
    private String className;

    /** 使用的模板（crud单表操作 tree树表操作） */
    @Excel(name = "使用的模板", readConverterExp = "crud单表操作 tree树表操作")
    @ApiModelProperty(value = "使用的模板（crud单表操作 tree树表操作）", name = "category", dataType = "String")
    private String category;

    /** 生成包路径 */
    @Excel(name = "生成包路径")
    @ApiModelProperty(value = "生成包路径", name = "packageName", dataType = "String")
    private String packageName;

    /** 生成模块名 */
    @Excel(name = "生成模块名")
    @ApiModelProperty(value = "生成模块名", name = "moduleName", dataType = "String")
    private String moduleName;

    /** 生成业务名 */
    @Excel(name = "生成业务名")
    @ApiModelProperty(value = "生成业务名", name = "businessName", dataType = "String")
    private String businessName;

    /** 生成功能名 */
    @Excel(name = "生成功能名")
    @ApiModelProperty(value = "生成功能名", name = "functionName", dataType = "String")
    private String functionName;

    /** 生成功能作者 */
    @Excel(name = "生成功能作者")
    @ApiModelProperty(value = "生成功能作者", name = "author", dataType = "String")
    private String author;

    /** 生成代码方式（0zip压缩包 1自定义路径） */
    @Excel(name = "生成代码方式", readConverterExp = "0zip压缩包 1自定义路径")
    @ApiModelProperty(value = "生成代码方式（0zip压缩包 1自定义路径）", name = "type", dataType = "String")
    private String type;

    /** 生成路径（不填默认项目路径） */
    @Excel(name = "生成路径", readConverterExp = "不填默认项目路径")
    @ApiModelProperty(value = "生成路径（不填默认项目路径）", name = "path", dataType = "String")
    private String path;

    /** 其它生成选项 */
    @Excel(name = "其它生成选项")
    @ApiModelProperty(value = "其它生成选项", name = "options", dataType = "String")
    private String options;

}
